package com.wgts.wgts.mvp.model.imp;

import com.wgts.wgts.mvp.model.IStoreActivityModel;
import com.wgts.wgts.netmodle.HttpResultSubscriber;
import com.wgts.wgts.netmodle.NetService;
import com.wgts.wgts.netmodle.req.UpDownProductRequest;
import com.wgts.wgts.netmodle.resp.ShopKeeperListEntity;
import com.wgts.wgts.netmodle.resp.StoreMsgEntity;

/*
 *
 *
 *   data:2018/10/1119:47
 *
 */public class StoreActivityModel implements IStoreActivityModel {
     private NetService netService;

    public StoreActivityModel(NetService netService) {
        this.netService = netService;
    }

    @Override
    public void initList(Integer userId, Integer pageIndex, Integer pageSize, HttpResultSubscriber<ShopKeeperListEntity> subscriber) {
        netService.shopKeeperList(userId, pageIndex, pageSize, subscriber);
    }

    @Override
    public void storeMsg(Integer shopId, HttpResultSubscriber<StoreMsgEntity> subscriber) {
        netService.storeMsg(shopId, subscriber);
    }

    @Override
    public void updownProduct(UpDownProductRequest request, HttpResultSubscriber<Integer> subscriber) {
        netService.updownProduct(request, subscriber);
    }
}
